using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace CodePlex.SpaceBlock.UI.Controls.Log
{
    public class LogView : BaseView<LogControl>
    {
        public LogView() : base("Log", UIConstants.ImageHints.LogWindow, Keys.Control | Keys.L, Properties.Messages.Views_Log_Tooltip) { }

        protected override void InitializeControl(LogControl control)
        {

            AuthUtils.FileSystemManagerChanged += delegate
            {
                control.InDisplay(delegate
                {
                    if (AuthUtils.FileSystemManager.IsValid)
                    {
                        control.Initialize(AuthUtils.FileSystemManager);
                    }
                });
            };

            control.Initialize(AuthUtils.FileSystemManager);
        }
    }
}
